<?php
//$intPlaceId		= $objRequest->getParam('placeid', 0);
$strCookieKey	= 'plcmt' . $intPlaceId;
$intPage		= isset($_COOKIE[$strCookieKey]) ? $_COOKIE[$strCookieKey] : $objRequest->getParam('page',1);
$intLimit		= COMMENT_LIMIT;
$intOff			= (($intPage-1) * $intLimit);
$intTotal		= 0;
$strUrl			= HOST_VFRIEND . 'comment/placecmt?placeid=' . $intPlaceId . '&';
$intTotal	 	= $objPlace->getCmtTotal($intPlaceId);
if($intTotal > $intLimit && !isset($_COOKIE[$strCookieKey])) {	
	$intOff 	= ($intPage - 1) * $intLimit;	
}
if($intOff >= $intTotal && $intOff) $intOff = $intTotal - $intLimit;
$arrComment					= $objPlace->getCmtList($AppUI->id, $intPlaceId,$intOff,$intLimit);
$this->view->comments		= $arrComment;
$this->view->intTotalCmt	= $intTotal;
$this->view->intOffsetCmt	= $intOff;
$this->view->intLimitCmt	= $intLimit;
$this->view->strUrl			= $strUrl;
$this->view->intPlaceId 	= $intPlaceId;
?>
